package com.woniuxy.company5.controller;

import com.woniuxy.company5.entity.RepProblemList;
import com.woniuxy.company5.service.RepProblemListService;
import com.woniuxy.company5.util.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/repProblemList")
public class RepProblemListController {
    @Resource
    private RepProblemListService repProblemListService;
    @PostMapping("")
    public Result add(@RequestBody RepProblemList repProblemList){
        repProblemListService.insertSelective(repProblemList);
        return Result.ok();
    }
}
